Skip to content

CN9130 Watchdog - #1321

Merged
wkz merged 5 commits into
mainfrom
cn9130-wdg
Dec 16, 2025
Merged

wkz merged 5 commits into
mainfrom
cn9130-wdg

Conversation

@wkz

@wkz wkz commented Dec 15, 2025

Copy link
Copy Markdown
Contributor

Description

Platforms based on Marvell CN9130 have incorrectly relied on the software watchdog (softdog) driver for supervision. Switch to the hardware watchdog to ensure that the system is rebooted even in scenarios that the software implementation can not recover from (e.g., hard lockups where interrupts are no longer serviced).

While we're here, add a regression test for this feature using the kernel's test_lockup module.

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

@wkz
wkz requested a review from troglobit December 15, 2025 11:59

@troglobit troglobit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work on this!

wkz added 5 commits December 16, 2025 09:33
By default, ensure that the target device accepts TCP connections on
the specified port before returning the device object. This aligns the
SSH implementation with {NET,REST}CONF.

This solves the issue where tests that use SSH commands early in their
execution would sometimes fail as the remote server had not started up
yet.
Usable by all Server Base System Architecture (SBSA) compliant SoCs,
e.g., CN9130.
This will be us the ability to test a hardware watchdog's ability to
trigger on different kinds of lockups.
Rev. A has a FLASH that Linux reconfigures to 4B-addressing, but must
be in 3B-addressing when accessed by the BootROM. Since it has no
reset input, this would not work on warm resets. Linux has a
workaround for this issue for the common case of a controlled reboot,
which this change enables on those boards (which are admittedly few
and far between, but still useful as testing vehicles).

(This won't take effect until Finit is updated to at least 4.15, which
switches over from watchdog- to reboot(2)- based reboot, by default)
Verify that if the system encounters a hard lockup, i.e., interrupts
are no longer being serviced, then the system's watchdog will
correctly reboot it.
@wkz
wkz merged commit 2aeeadb into main Dec 16, 2025
7 checks passed
@wkz
wkz deleted the cn9130-wdg branch December 16, 2025 10:17
@wkz wkz linked an issue Dec 16, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: Watchdog reset on lockups

2 participants